import { Component } from '@angular/core';
import { NavController, NavParams, App, ViewController, Events } from 'ionic-angular';


@Component({
  selector: 'page-currency',
  templateUrl: 'currency.html',
})
export class CurrencyPage {
  relationship;
  constructor(
    public navCtrl: NavController,
    public navParams: NavParams,
    public app: App,
    private viewCtrl: ViewController,
    private events: Events,
  ) {
      this.relationship = this.navParams.get("currency");
  }
  ionViewDidLoad() {
    console.log('ionViewDidLoad LoginPage');
  }

  select(relationship) {
    this.events.publish('user:created', this.relationship, Date.now());
    this.navCtrl.pop();
  }
  ionViewDidLeave() {
    
  }
}
